<?php 
if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}
?>
<script type="text/javascript">
function enterTable(e,value){
    var key = window.event ? e.keyCode : e.which;
    if(key==13){
    	document.getElementById(value).focus();
		document.getElementById(value).select();
		return false; 
	}else
		return true;	
}
</script>
<form action="loginHandler.php" method="post" >
		<h3><?=$l_loginTitle?></h3>
		<?php if (isset($_SESSION['error'])){?>
		<div style="height: 10px;"></div>
        	 <div style="color: red;text-align: center;"><?php echo $l_invaliduser?></div>
        	 
        	  <div class="logintext">
        	 
            <div class="user" style="margin-top: -25px;">
                <p><?=$l_usernameLBL?></p>
                <input type="text" onkeypress="return enterTable(event,'loginpass');" id="loginuser" name="txtUser" autocomplete="off"
                 class="flogin" style="height: 28px;line-height: 28px;"/>
            </div>
            <div class="user">
                <p><?=$l_passwordLBL?></p>
                <input type="password" id="loginpass" name="txtPass" class="flogin" style="height: 28px;line-height: 28px;"/>
            </div>
            
        </div>
        
        	 <?php } 
        	 else{?>
        	  <div class="logintext">
        	 
            <div class="user">
                <p><?=$l_usernameLBL?></p>
                <input type="text" onkeypress="return enterTable(event,'loginpass');" id="loginuser" name="txtUser" autocomplete="off" class="flogin" style="height: 28px;line-height: 28px;"/>
            </div>
            <div class="user">
                <p><?=$l_passwordLBL?></p>
                <input type="password" id="loginpass" name="txtPass" class="flogin" style="height: 28px;line-height: 28px;"/>
            </div>
            
        </div>
        	 <?php } unset($_SESSION['error']);?>
        	
        <div class="btnlogin">
        	<input type="checkbox" name="check" value="on" /> <?=$l_Remember?>
        	<input type="submit" name="btnLogin"  value="<?=$l_loginButton?>" class="bsubmit" />
        </div>
        
 </form>